
set(CMAKE_ASM_NASM_FLAGS "-f elf")

# aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} SRC_LIST)
file(GLOB_RECURSE SRC_LIST "*.c" "*.S")

# set compile options for c program
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32 -fno-builtin -fno-stack-protector")

add_library(kernel_dependencies STATIC ${SRC_LIST})
target_include_directories(kernel_dependencies PUBLIC ${CMAKE_SOURCE_DIR}/include)

